import java.util.TreeSet;

public class Test01 {
    public static void main(String[] args) {
        Student s1=new Student("zhangsan",23,98,99,50);
        Student s2=new Student("lisi",24,90,98,50);
        Student s3=new Student("wangwu",25,95,100,50);
        Student s4=new Student("zhaoliu",26,60,99,78);
        TreeSet<Student> ts=new TreeSet<>();
        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        ts.add(s4);
        for(Student s:ts){
            System.out.println(s);
        }
    }
}
